Wikipedia

Buyer purchased a credit default swap (CDS) at time t0 and makes regular premium payments at times t1, t2, t3, and t4. If the associated credit instrument suffers no credit event, then the buyer continues paying premiums at t5, t6 and so on until the end of the contract at time tn. However, if the associated credit instrument suffered a credit event at t5, then the seller pays the buyer for the loss, and the buyer would cease paying premiums to the seller.